﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace StudentManage
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Frm_Login());

            Frm_Login frm_Login = new Frm_Login();//实例化登录窗体
            frm_Login.ShowDialog();//将登录窗体设置为模态状态

            if (frm_Login.DialogResult == DialogResult.OK)
                Application.Run(new Frm_Main());
        }
    }
}
